home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1998 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.3 KB

  1. Path: news-m01.ny.us.ibm.net!usenet
  2. From: jrobertson@ibm.net (James Robertson)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: 3D Dialog Boxes
  5. Date: Mon, 15 Jan 1996 01:40:22 GMT
  6. Message-ID: <4dc6f5$4rbk@news-s01.ny.us.ibm.net>
  7. References: <4d98vr$5q6@felix.junction.net>
  8. NNTP-Posting-Host: slip202-135-13-79.sy.au.ibm.net
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. heppner@portage.net (Donald Heppner) wrote:
  12.  
  13. >I was wondering what is involved to make a dialog box 3D sytle in Borland
  14. >C++ 4.0.  If someone could tell me what to look up in the manuals, or can
  15. >offer some advice, I would appreciate it.
  16.  
  17. >Thanks,
  18. >Donald
  19.  
  20. You need to use some functions in ctl3d.dll.  I use Visual C++ 1.51
  21. but I presume the technique is the same across compilers.  Here's what
  22. I do:
  23.  
  24. In your app's InitInstance ( or whatever Borland's equivalent is)
  25.     
  26.     Ctl3dRegister(AfxGetInstanceHandle());
  27.     Ctl3dAutoSubclass(AfxGetInstanceHandle());
  28.  
  29. In your app's ExitInstance ( or whatever Borland's equivelant is)
  30.  
  31.     Ctl3dUnregister(AfxGetInstanceHandle());
  32.  
  33. In your dialog's OnCtlColor() ( or whatever Borland's equivelant is)
  34.  
  35.     Ctl3dColorChange();
  36.  
  37. Of course, you will need to include the Ctl3d.h file and link with
  38. Ctl3d.lib and have ctl3d.dll in your path somewhere.  If you need
  39. these, mail me and  I'll send em!  (Mitch@ibm.net).
  40.  
  41. Good luck
  42.  
  43.     
  44.     
  45.  
  46.  
  47.